package com.ruoyi.znjc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户订阅对象 znjc_usersub
 * 
 * @author ZNJC
 * @date 2025-07-24
 */
public class ZnjcUsersub extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订阅记录ID */
    @Excel(name = "订阅记录ID")
    private Long subId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 规则ID */
    @Excel(name = "规则ID")
    private Long ruleId;

    /** 通知方式 */
    @Excel(name = "通知方式")
    private String notifyMethod;

    /** 订阅名称 */
    @Excel(name = "订阅名称")
    private String subName;

    public void setSubId(Long subId) 
    {
        this.subId = subId;
    }

    public Long getSubId() 
    {
        return subId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }

    public void setNotifyMethod(String notifyMethod) 
    {
        this.notifyMethod = notifyMethod;
    }

    public String getNotifyMethod() 
    {
        return notifyMethod;
    }

    public void setSubName(String subName) 
    {
        this.subName = subName;
    }

    public String getSubName() 
    {
        return subName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("subId", getSubId())
            .append("userId", getUserId())
            .append("ruleId", getRuleId())
            .append("notifyMethod", getNotifyMethod())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("subName", getSubName())
            .toString();
    }
}
